home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: help on syntax
- Date: 3 Jan 1996 05:52:24 GMT
- Organization: Kalevi, Inc
- Message-ID: <4cd5io$7qg@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Jan 02, 1996 22:27:28 in article <help on syntax>, 'Paul Abrilla
- <APCCU@CUNYVM.CUNY.EDU>' wrote:
-
-
- >I'm trying to run a simple program, but I'm getting a 'misplaced
- >else' error everytime I compile it. [... rest deleted ..]
-
- Read up on the use of braces.
- >
- >if (c = (a-b))
- { // Ya needs one here
- >cout << "a: ";
- >cout << a;
- >cout << " minus b: ";
- >cout << b;
- >cout << " quals c: ";
- >cout << c << endl;
- } // and here
- >else
- >cout << "a-b does not equal c: " << endl;
- >
-
- --
-
- Pete
-
-
-
-
-
-